import request from '@/utils/request'

// 查询工单配置列表
export function listWorksheet(query) {
  return request({
    url: '/system/worksheet/list',
    method: 'get',
    params: query
  })
}

// 查询工单配置详细
export function getWorksheet(id) {
  return request({
    url: '/system/worksheet/' + id,
    method: 'get'
  })
}

// 新增工单配置
export function addWorksheet(data) {
  return request({
    url: '/system/worksheet',
    method: 'post',
    data: data
  })
}

// 修改工单配置
export function updateWorksheet(data) {
  return request({
    url: '/system/worksheet',
    method: 'put',
    data: data
  })
}

// 删除工单配置
export function delWorksheet(id) {
  return request({
    url: '/system/worksheet/' + id,
    method: 'delete'
  })
}
